const Router = require('@koa/router');
const fun = require('../controller/system/upload.controller');
const config = require('../config');
const router = new Router({ prefix: `${config.ADMIN_PREFIX}` });

// 文件上传
router.post('/sys-file/upload', fun.upload);

// 删除文件
router.delete('/sys-file', fun.deleteFile);

// 查询文件列表
router.get('/sys-file', fun.list);
module.exports = router;
